from ronglian_sms_sdk import SmsSDK
from qomokao.celery_tasks.main import celery_app


@celery_app.task()
def send_sms(sms_code):
        accId = '2c94811c8cd4da0a018fdc1cc7d131a1'
        accToken = '1909907268894dd0a791cfec0e67716d'
        appId = '2c94811c8cd4da0a018fdc1cc95031a8'
        sdk = SmsSDK(accId, accToken, appId)
        # sms_code = sdk.sendMessage('1' (sms_code,5))
        # sdk.sendMessage('1',  (sms_code, 5))
        print('短信验证码:', sms_code)
        print('调用celery')
